<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>erp进销存系统</title>
	<link rel="stylesheet" href="../../static/css/style.css" th:href="@{http://localhost:8080/css/style.css}">
	<link rel="stylesheet" href="../../static/css/man/manager.css"
		  th:href="@{http://localhost:8080/css/man/manager.css}">
	<link rel="stylesheet" href="../../static/layui/css/layui.css"
		  th:href="@{http://localhost:8080/layui/css/layui.css}">
	<script src="../../static/layui/layui.js" th:src="@{http://localhost:8080/layui/layui.js}"></script>
	<script src="../../static/js/jquery.js"
			th:src="@{http://localhost:8080/webjars/jquery/3.6.0/jquery.min.js}"></script>
	<script th:inline="javascript">
		$(function (){
		//用户相关
			//用户添加
			$("#manager_add").on("click",function(){
				$(".mid_right iframe")[0].src=/*[['/manager/add']]*/"manager_add.html";
			})
			//用户列表
			$("#manager_list").on("click",function(){
				$(".mid_right iframe")[0].src=/*[['/manager/list']]*/"manager_list.html";
			})
		//分类相关
			//分类列表
			$("#brand_list").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/brand/list']]*/"brand.html";
			})


		//商品相关
			$("#product_add").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/products/add']]*/"goods_add.html";
			})
			$("#product_change").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/products/list']]*/"goods_change.html";
			})

		//信息相关
			$("#storage_list").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/storage/list']]*/"goods_change.html";
			})

			$("#out_storage_add").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/outStorage/add']]*/"goods_change.html";
			})

			$("#out_storage_list").on("click",function (){
				$(".mid_right iframe")[0].src=/*[['/outStorage/list']]*/"goods_change.html";
			})

		})

	</script>

</head>
<body>
<div class="layui-row">
	<div class="top  layui-bg-cyan">
		<h1 th:text="福澈进销存管理系统">erp进销存系统</h1>

	<p style=" color:green; position: absolute;z-index: 1; margin:-50px 0 0 100px;">欢迎您, <span id="manager" th:text="${session.manager.realName}"></span></p>
	</div>
	<div class="mid layui-row layui-bg-blue">

			<ul class="mid_left layui-nav layui-nav-tree layui-inline layui-col-sm1" lay-filter="demo" style="margin-right: 10px;">
				<li class="layui-nav-item  layui-nav-itemed">
					<a href="javascript:;">用户管理<span class="layui-nav-more"></span></a>
					<dl class="layui-nav-child">
						<dd><a href="javascript:;" th:href="${'javascript:;'}" id="manager_add">用户添加</a></dd>
						<dd><a href="javascript:;"  th:href="${'javascript:;'}" id="manager_list">用户修改</a></dd>

					</dl>
				</li>
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;">分类模块<span class="layui-nav-more"></span></a>
					<dl class="layui-nav-child">
						<dd><a href="javascript:;" id="brand_list">分类修改</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;">产品模块<span class="layui-nav-more"></span></a>
					<dl class="layui-nav-child">
						<dd><a href="javascript:;" id="product_add">产品入库</a></dd>
						<dd><a href="javascript:;" id="product_change">入库信息</a></dd>
					</dl>
				</li>
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;">产品信息<span class="layui-nav-more"></span></a>
					<dl class="layui-nav-child">
						<dd><a href="javascript:;" id="storage_list">库存信息</a></dd>
						<dd><a href="javascript:;" id="out_storage_add" >商品出库</a></dd>
						<dd><a href="javascript:;" id="out_storage_list" >出库信息</a></dd>
					</dl>
				</li>


			</ul>

		<div class="mid_right"  >
			<!--成功后解开的页面-->
			<!--<iframe src="manager_list.html" th:src="${'/products/list'}" frameborder="0" width="80%" ></iframe>-->
			<iframe src="brand.html" th:src="${'/products/list'}" frameborder="0" width="80%" ></iframe>
		</div>
	</div>
	<div class="bot">

	</div>
</div>
</body>
</html>